package com.dai.consumer_feign31;

import com.dai.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
//说明是eureka的客户端
@EnableEurekaClient
//这个注解是为“DAI-PROVIDER”这个微服务采用自定义负载均衡算法，如采用出厂自带的7种负载均衡算法就不必加这个注解
@RibbonClient(name = "DAI-PROVIDER",configuration = MySelfRule.class)
public class Consumer30 {
    public static void main(String[] args) {
        SpringApplication.run(Consumer30.class, args);
    }
}
